package com.anc.admin.model.admin.controller;


import com.anc.admin.model.admin.entity.SysUser;
import com.anc.admin.model.admin.service.ISysUserService;
import com.anc.web.annotions.WebController;
import com.google.common.collect.Lists;
import model.Response;
import model.ResponseFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author Anc
 * @since 2022-07-02
 */
@WebController
@RequestMapping("/admin/sys-user")
public class SysUserController {
    @Autowired
    private ISysUserService iSysUserService;
    @GetMapping("/getUser")
    public Response<List<SysUser>> getAllMenu() {
        List<SysUser> list= Lists.newArrayList();
        SysUser sysUser=new SysUser();
        sysUser.setName("nimade");
        list.add(sysUser);
        return ResponseFactory.buildSuccessResponse(list);
    }
}

